<?php

namespace frontend\models;

use Yii;


class UserMessage extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%user_message}}';
    }

	 public function rules()
    {
        return [
            [['user_id', 'to_id', 'message_type', 'model_id', 'message_status', 'addtime', 'message_operation'], 'integer'],
            [['model'], 'string', 'max' => 255],
			[['message_content'], 'string', 'max' => 50],
        ];
    }
}
